package models;

import commands.ICommand;

public class MoteurMetronome implements IMoteurMetronome
{
	// Le Metronome est en marche
	private boolean _etatMarche;
	
	// Le tempo
	private double _tempo;
	
	// La mesure
	private int _measure;

	private ICommand _cmdMarquerTempo;

	private ICommand _cmdMarquerMeasure;
	
	public boolean getEtatMarche()
	{
		return _etatMarche;
	}

	public void setEtatMarche(boolean etatMarche)
	{
		_etatMarche = etatMarche;
	}

	public double getTempo()
	{
		return _tempo;
	}

	public void setTempo(double tempo)
	{
		_tempo = tempo;
	}

	public ICommand getCmdMarquerTempo()
	{
		return _cmdMarquerTempo;
	}

	public void setCmdMarquerTempo(ICommand cmdMarquerTempo)
	{
		_cmdMarquerTempo = cmdMarquerTempo;
	}

	public int getMeasure()
	{
		return _measure;
	}

	public void setMeasure(int measure)
	{
		_measure = measure;
	}

	public ICommand getCmdMarquerMeasure()
	{
		return _cmdMarquerMeasure;
	}

	public void setCmdMarquerMeasure(ICommand cmdMarquerMeasure)
	{
		_cmdMarquerMeasure = cmdMarquerMeasure;
	}

	public void execute(ICommand command)
	{
		command.execute();
	}
}
